package com.chen.dao;

import com.chen.model.Salesman;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SalesmanDao {

     int addSalesman(Salesman salesman);

     List<Salesman> findAllSalesman();

     int updateSalesman(Salesman salesman);

     Salesman findSalesmanById(Integer salesman_id);

     @Select("SELECT * FROM salesman WHERE salesman_account = #{salesman_account}")
     Salesman findByAccount(String salesman_account);

     List<Salesman> findSalesmanByName(String  salesman_name);
}
